package com.java.dao;

import com.java.entity.Admins;
import com.java.entity.Orders;
import com.java.entity.Users;

import java.sql.SQLException;
import java.util.List;

public interface AdminDao {
    Admins selectAdminByUserNameAndPassword(String userName, String password) throws SQLException;
    List<Orders> selectAllOrders() throws SQLException;
    Orders selectOrdersByBookId(String bookId) throws SQLException;
    boolean updateOrderById(Orders orders) throws SQLException;
    List<Users> selectAllUsers() throws SQLException;
    Users selectUserById(String id) throws SQLException;
    boolean updateUserById(Users users) throws SQLException;
    List<Admins> selectAllAdmins() throws SQLException;
    Admins checkAdminById(String adminId) throws SQLException;
    boolean updateAdminById(Admins admins) throws SQLException;
    int addAdmin(String id,String username,String password) throws SQLException;
}
